package org.example.service.impl;

import org.example.dao.UserDao;
import org.example.dao.impl.BookDaoimpl;
import org.example.dao.impl.UserDaoimpl;
import org.example.service.BookService;

public class BookServiceimpl implements BookService {
    private BookDaoimpl bookDao;
    private UserDaoimpl userDao;

    public void setBookDao(BookDaoimpl bookDao) {
        this.bookDao = bookDao;
    }
    public void setUserDao(UserDaoimpl userDao){
        this.userDao= userDao;
    }

    @Override
    public void save() {
        System.out.println("BookService save...");
        bookDao.save();
        userDao.save();
    }


}
